
<%@ page import="com.surelution.tinyerp.PurchaseOrder" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'purchaseOrder.label', default: 'PurchaseOrder')}" />
        <title><g:message code="default.show.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.show.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>
                        
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="purchaseOrder.id.label" default="Id" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: purchaseOrderInstance, field: "id")}</td>
                            
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="purchaseOrder.year.label" default="Year" /></td>
                            
                            <td valign="top" class="value"><g:formatDate date="${purchaseOrderInstance?.year}" format="yyyy年"/></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="purchaseOrder.assignTime.label" default="Assign Time" /></td>
                            
                            <td valign="top" class="value"><g:formatDate date="${purchaseOrderInstance?.assignTime}" format="yyyy年MM月dd日"/></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="purchaseOrder.finishTime.label" default="Finish Time" /></td>
                            
                            <td valign="top" class="value"><g:formatDate date="${purchaseOrderInstance?.finishTime}" format="yyyy年MM月dd日"/></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="purchaseOrder.actualFinishTime.label" default="Actual Finish Time" /></td>
                            
                            <td valign="top" class="value"><g:formatDate date="${purchaseOrderInstance?.actualFinishTime}" format="yyyy年MM月"/></td>
                            
                        </tr>
                        
                         <tr class="prop">
                            <td valign="top" class="name"><g:message code="purchaseOrder.market.label" default="Market" /></td>
                            
                            <td valign="top" class="value"><g:link controller="market" action="show" id="${purchaseOrderInstance?.market?.id}">${purchaseOrderInstance?.market?.name}</g:link></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="purchaseOrder.orderNo.label" default="Order No" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: purchaseOrderInstance, field: "orderNo")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="purchaseOrder.orderNum.label" default="Order Num" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: purchaseOrderInstance, field: "orderNum")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="purchaseOrder.planNo.label" default="Plan No" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: purchaseOrderInstance, field: "planNo")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="purchaseOrder.getNum.label" default="Get Num" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: purchaseOrderInstance, field: "getNum")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="purchaseOrder.format.label" default="Format" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: purchaseOrderInstance, field: "format")}</td>
                            
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="purchaseOrder.price.label" default="Price" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: purchaseOrderInstance, field: "price")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="purchaseOrder.prodType.label" default="Prod Type" /></td>
                            
                            <td valign="top" class="value">${purchaseOrderInstance?.prodType?.name}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="purchaseOrder.unit.label" default="Unit" /></td>
                            
                            <td valign="top" class="value">${purchaseOrderInstance?.unit?.name}</td>
                            
                        </tr>
                    
                    	<tr class="prop">
                            <td valign="top" class="name"><g:message code="purchaseOrder.remark.label" default="Remark" /></td>
                            
                            <td valign="top" class="value">${purchaseOrderInstance?.remark}</td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <g:hiddenField name="id" value="${purchaseOrderInstance?.id}" />
                    <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                    <span class="button"><g:actionSubmit class="edit" action="addCost" value="${message(code: 'default.button.addCost.label', default: 'addCost')}" /></span>
                </g:form>
            </div>
        </div>
    </body>
</html>
